package com.fmistuff.threadedcalc;
import java.math.BigInteger;

public class ExpressionNodeSimple extends ExpressionNode
{
	public ExpressionNodeSimple(BigInteger value)
	{
		super(null, null, null);
		this.value = value;
		weight = value.bitLength();
		maxthreads = 0;
	}
	
	@Override
	public boolean IsSimple()
	{
		return true;
	}
	
	@Override
	public BigInteger GetValue(ThreadPool pool, EvaluationThread thread)
	{
		return value;
	}
}	
